package cn.service.impl;

import cn.service.UserService;
import org.springframework.stereotype.Component;

// 注意service层实现类要加上注解!
@Component("userService")
public class UserServiceImpl implements UserService {
    @Override
    public void say() {
        System.out.println("Hello Spring ！ 我用annotation方式入门了！");
    }
}
